﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="MainPlanoExercicioFrequencia.aspx.cs" Inherits="AcademiaInteligenteWeb.MainPlanoExercicioFrequencia" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Frequencia
        <asp:Label Text="" ID="lblModalidadeDescricao" runat="server" />
    </h1>
    <div id="formulario">
        <table>
            <tr>
                <td>Iniciar em:</td>
                <td>
                    <asp:TextBox runat="server" ID="txtData" CssClass="isDate" />
                </td>
                <td>
                    <asp:CheckBoxList ID="ckbListDiaSemana" runat="server" Width="181px">
                        <asp:ListItem Value="1">Segunda</asp:ListItem>
                        <asp:ListItem Value="2">Terça</asp:ListItem>
                        <asp:ListItem Value="3">Quarta</asp:ListItem>
                        <asp:ListItem Value="4">Quinta</asp:ListItem>
                        <asp:ListItem Value="5">Sexta</asp:ListItem>
                        <asp:ListItem Value="6">Sabado</asp:ListItem>
                        <asp:ListItem Value="0">Domingo</asp:ListItem>
                    </asp:CheckBoxList>
                </td>
                <td>Quantidade Semanas
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlQtdSemanas">
                        <asp:ListItem Text="1" Value="1" />
                        <asp:ListItem Text="2" Value="2" />
                        <asp:ListItem Text="3" Value="3" />
                        <asp:ListItem Text="4" Value="4" />
                        <asp:ListItem Text="5" Value="5" />
                        <asp:ListItem Text="6" Value="6" />
                        <asp:ListItem Text="7" Value="7" />
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button Text="Salvar" ID="btnSalvar" runat="server" OnClick="btnSalvar_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div id="acoes">
        <ul>
            <li>
                <a href="NewModalidade.aspx">Nova</a>
            </li>

            <li class="itemSelected">
                <%--<asp:LinkButton Text="Alterar" ID="lnkAlterar" runat="server" OnClick="lnkAlterar_Click" />--%>
            </li>
            <li class="itemSelected">
                <%--<asp:LinkButton Text="Excluir" ID="lnkExcluir" runat="server" OnClick="lnkExcluir_Click" />--%>
                <asp:HiddenField ID="hfCurrentItem" ClientIDMode="Static" runat="server" />
            </li>
        </ul>
    </div>
    <div id="dados">
        <asp:GridView ID="grdPlanoExercicioFrequencia" runat="server" AutoGenerateColumns="false" AllowPaging="true" >
            <AlternatingRowStyle CssClass="alterningRow" />
            <SelectedRowStyle CssClass="selectedRow" />
            <Columns>

                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="30px">
                    <ItemTemplate>
                        <input type="checkbox" name="chkSelect" class="checkboxGrid" value='<%#Eval("id")%>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Concluido" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="30px">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# (bool)Eval("concluido") == true ? "Sim" : "Não" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="data" HeaderText="Hora" DataFormatString="{0:dd/MM/yyyy HH:mm}" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
